package com.achievement.service;

import com.achievement.domain.dto.honor.ReviewStandardDTO;
import com.achievement.domain.entity.ReviewStandardEntity;
import com.achievement.domain.param.honor.ReviewStandardParam;
import com.achievement.domain.vo.honor.ReviewStandardVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IReviewStandardService extends IService<ReviewStandardEntity> {
    List<ReviewStandardVO> selectByPage(ReviewStandardParam param);

    List<ReviewStandardEntity> getListByConditions(ReviewStandardDTO ReviewStandardDTO);
    ReviewStandardVO getInfoById(String id);

    boolean add(ReviewStandardDTO dto);

    boolean update(ReviewStandardDTO dto);

    boolean batchRemove(List<String> ids);
    boolean bitchAdd(List<ReviewStandardDTO> reviewStandardDTOs, String reviewSchemeId);

    /**
     * 根据方案id删除所有该方案下评审标准
     * @param reviewSchemeId
     * @return
     */
    boolean deleteReviewStandardByReviewSchemeId(String reviewSchemeId);
    /**
     * 根据方案id查询该方案下评审标准
     * @param reviewSchemeId
     * @return
     */
    List<ReviewStandardVO> getListByReviewSchemeId(String reviewSchemeId);
}
